package ${daoPackage};

import java.util.List;

import ${clazz.entityName};

public interface ${pojo.getDeclarationName()}DAO{
	public void save(${pojo.getDeclarationName()} transientInstance);

	public void delete(${pojo.getDeclarationName()} persistentInstance);

	public ${pojo.getDeclarationName()} findById(java.lang.Long id);

	public List findByExample(${pojo.getDeclarationName()} instance);

	public List findByProperty(String propertyName, Object value);

	public List findAll();

	public ${pojo.getDeclarationName()} merge(${pojo.getDeclarationName()} detachedInstance);

	public void attachDirty(${pojo.getDeclarationName()} instance);

	public void attachClean(${pojo.getDeclarationName()} instance);
}